#ifndef _GETDATA_H
#define _GETDATA_H
#include "../sensor/adc/AdcFunction.h"
#include "../sensor/convert/ph.h"
#include "../sensor/convert/tbs.h"
#include "../sensor/convert/tds.h"

int getTDS()
{
    int vol = adc_read_d(ADC1);
    int TDSdata = tds_value(vol,26.5);
    return TDSdata;
}

int getTBS_value()
{
    int vol = adc_read_d(2);
    int TBS_value = tbs_value(vol);
    return TBS_value;
}

int getTBS_level()
{
    int vol = adc_read_d(2);
    int TBS_level = tbs_level(vol);
    return TBS_level;
}

double getPH()
{
    int vol = adc_read_d(ADC1);
    double PHdata = ph_value(vol);
    return PHdata;
}
#endif
